<?php
/*
	Copyright 2006, 2007, 2008, 2009, 2010 Bastiaan Grutters
    
    This file is part of Ages of Strife website.

    Ages of Strife website is free software: you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation, either version 3 of the License, or
    (at your option) any later version.

    Ages of Strife website is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.

    You should have received a copy of the GNU General Public License
    along with Ages of Strife website.  If not, see <http://www.gnu.org/licenses/>.
 */

// Global configuration for Ages of Strife

// The database name
define( 'DATABASE_NAME', 		'agesofstrife' );
// The username of MySQL server user
define( 'DATABASE_USER', 		'username' );
// The password of MySQL server user
define( 'DATABASE_PASSWORD', 	'password');
// The address of the MySQL server
define( 'DATABASE_HOST', 		'localhost' );

// The address the site will be accessed through
define( 'SITE_URL', 			'http://localhost' );
// Whether debug mode should be enabled or not
define( 'DEBUG', 				true );
// If debug mode is not enabled, the mail address to send errors to
define( 'ERROR_MAIL', 			'mail@mail.mail' );

/**
 * Instructions:
 * Change the settings
 * Rename this file to config.php
***/

	$log = new dlog();
	$log->MailTo = array('contact@agesofstrife.com');
	$log->MailSender = 'logger@agesofstrife.com';
/*	
 * Set the prefered log file location here
	$log->FlatFileName = 'mydir' . 'logs/'.date('dmY').'.txt';
*/
	$log->register_error_handler();
	
	$log->ErrorMgr[DLOG_USER_INFO]=array(
										'display' => 0,   // send the message to browser
										'mail'    => 0,   // send by e-mail
										'flat'    => 1,   // write out to flat file
										'db'      => 0,   // write to db
										'die'     => 0    // end the script
									);
	$log->ErrorMgr[E_USER_ERROR]=	array(
										'display' => 0,   // send the message to browser
										'mail'    => 0,   // send by e-mail
										'flat'    => 1,   // write out to flat file
										'db'      => 0,   // write to db
										'die'     => 1    // end the script
									);
	$log->ErrorMgr[E_USER_WARNING]=array(
										'display' => 0,   // send the message to browser
										'mail'    => 0,   // send by e-mail
										'flat'    => 1,   // write out to flat file
										'db'      => 0,   // write to db
										'die'     => 1    // end the script
									);
	$log->ErrorMgr[E_USER_NOTICE]=	array(
										'display' => 0,   // send the message to browser
										'mail'    => 0,   // send by e-mail
										'flat'    => 1,   // write out to flat file
										'db'      => 0,   // write to db
										'die'     => 0    // end the script
									);			
	$log->ErrorMgr[E_WARNING]=		array(
										'display' => 0,   // send the message to browser
										'mail'    => 0,   // send by e-mail
										'flat'    => 1,   // write out to flat file
										'db'      => 0,   // write to db
										'die'     => 0    // end the script
									);
	$log->ErrorMgr[E_NOTICE]=		array(
										'display' => 0,   // send the message to browser
										'mail'    => 0,   // send by e-mail
										'flat'    => 1,   // write out to flat file
										'db'      => 0,   // write to db
										'die'     => 0    // end the script
									);

?>